<%--
  Created by IntelliJ IDEA.
  User: TianyuChen
  Date: 2020/3/27
  Time: 17:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>ego-management show</title>
    <base href="<%=basePath%>">
</head>
<body>
    <h1>当前广告图片</h1>
    <table border="1">
        <tr>
            <th>图片</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${pictures}" var="picture">
            <tr>
                <td><img src="${picture.path}" width="100"/></td>
                <td><a href="delete?id=${picture.id}">删除</a></td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
